//package cn.east196.tfx.web;
//
//import java.util.List;
//import java.util.Map;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.jdbc.core.JdbcTemplate;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import cn.east196.tfx.db.DatabaseService;
//import cn.east196.tfx.db.TableField;
//
//@RestController
//@RequestMapping("/database")
//public class DatabaseController {
//
//	private static final Logger LOGGER = LoggerFactory.getLogger(DatabaseController.class);
//
//	@Autowired
//	JdbcTemplate jdbcTemplate;
//
//	@Autowired
//	DatabaseService databaseService;
//
//	@RequestMapping(value = "/schema", method = RequestMethod.GET)
//	public List<String> schemas() {
//		return databaseService.schemas();
//	}
//
//	@RequestMapping(value = "/table", method = RequestMethod.GET)
//	public List<String> tables(String schema) {
//		return databaseService.tables(schema);
//	}
//
//	@RequestMapping(value = "/field", method = RequestMethod.GET)
//	public List<Map<String, Object>> fields(String schema,String table) {
//		return databaseService.fields(schema, table);
//	}
//
//	@RequestMapping(value = "/f", method = RequestMethod.GET)
//	public List<TableField> fs(String schema,String table) {
//		return databaseService.fs(schema, table);
//	}
//}